<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Ad_FeaturedDoctors.aspx.cs"
    Inherits="Admin_Ad_FeaturedDoctors" %>

<%@ Register Src="Include/Ad_footer.ascx" TagName="Ad_footer" TagPrefix="uc3" %>
<%@ Register Src="Include/Ad_left.ascx" TagName="Ad_left" TagPrefix="uc2" %>
<%@ Register Src="Include/Ad_header.ascx" TagName="Ad_header" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Featured Doctors</title>
    <link href="include\styles.css" rel="stylesheet" />

    <script>
    function ChangeHeaderAsNeeded(chkBox)
    {
          
            if (CheckBoxIDs != null)
            {
                for (var i = 0; i < CheckBoxIDs.length; i++)
                {
                    var cb = document.getElementById(CheckBoxIDs[i]);
                    if (!cb.checked)
                    {
                        ChangeCheckBoxState(CheckBoxIDs[0], false);
                        return;
                    }
                }
            ChangeCheckBoxState(CheckBoxIDs[0], true);
            }
    }
           function ChangeCheckBoxState(id, checkState)
           {
              var cb = document.getElementById(id);
              if (cb != null)
              cb.checked = checkState;
           }

       function ChangeAllCheckBoxStates(checkState)
       {
          if (CheckBoxIDs != null)
          {
             for (var i = 0; i < CheckBoxIDs.length; i++)
             ChangeCheckBoxState(CheckBoxIDs[i], checkState);
          }
       }
       
       function DelConfirm()
       {
            var Resp=confirm("Are You Sure to Delete Record(s)?");
            if(Resp==true)
            {
            return true;
            }
            else
            {
            return false;
            }
       }
    
    </script>

</head>
<body>
    <form id="frmF" runat="server">
        <div>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <!-- Masthead starts from here-->
                <uc1:Ad_header ID="Ad_header1" runat="server" />
                <!-- Masthead ends here-->
                <tr>
                    <td>
                    </td>
                    <td style="width: 950px">
                        <table border="0" cellspacing="0" cellpadding="0" style="width: 737px; height: 639px">
                            <tr>
                                <td width="150" valign="top">
                                    <!-- Left panel starts from here-->
                                    <uc2:Ad_left ID="Ad_left1" runat="server" />
                                    <!-- Left panel ends from here-->
                                </td>
                                <td width="15" valign="top">
                                    <img src="../images/spacer.gif" width="15" height="1" /></td>
                                <td valign="top" style="width: 561px">
                                    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tblborder">
                                        <tr>
                                            <td width="2%" style="height: 35px">
                                            </td>
                                            <td class="normalblack_12" align="center" style="height: 35px; width: 526px;">
                                                <b>Featured Doctors</b></td>
                                            <td style="width: 10px; height: 35px;">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="height: 35px" width="2%">
                                            </td>
                                            <td align="right" class="normalblack_12" style="height: 35px; width: 526px;">
                                                &nbsp;<asp:Label ID="lblDocs" runat="server" Text="Total Doctors:"></asp:Label>
                                                <asp:Label ID="lbltotDocs" runat="server" Text=""></asp:Label>
                                                <br />
                                                <asp:Label ID="lblFDocs" runat="server" Text="Featured Doctors:"></asp:Label>
                                                <asp:Label ID="lbltotFDocs" runat="server" Text=""></asp:Label>
                                                <td style="width: 10px; height: 35px">
                                                </td>
                                        </tr>
                                        <tr>
                                            <td style="height: 43px">
                                            </td>
                                            <td style="height: 43px; width: 526px;" colspan="2">
                                                <strong class="normalgrey_12">Name</strong>:&nbsp;<asp:TextBox ID="txtName" runat="server"
                                                    Width="95px"></asp:TextBox>
                                                <strong class="normalgrey_12">State</strong>:&nbsp;<asp:DropDownList Width="14%"
                                                    ID="ddStateList" runat="server">
                                                </asp:DropDownList>
                                                <strong class="normalgrey_12">Email</strong>:&nbsp;<asp:TextBox ID="txtEmail" runat="server"
                                                    Width="150px"></asp:TextBox>
                                                <asp:Button ID="butSerach" runat="server" Text="Go" OnClick="butSerach_Click" />
                                                <div>
                                                    &nbsp;</div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="15">
                                            </td>
                                            <td style="width: 526px">
                                            </td>
                                            <td style="width: 10px">
                                            </td>
                                        </tr>
                                        <asp:Panel ID="pnlHint" runat="server">
                                            <tr>
                                                <td colspan="3" align="center">
                                                    <small></small>
                                                </td>
                                            </tr>
                                        </asp:Panel>
                                        <asp:Panel ID="pnlfeaturedDoc" runat="server">
                                            <tr>
                                                <td colspan="3" align="left">
                                                    <asp:Label ID="lblFeaturedDoc" CssClass="normalgrey_12" runat="server" ForeColor="red"></asp:Label>
                                                </td>
                                            </tr>
                                        </asp:Panel>
                                        <tr>
                                            <td style="height: 315px">
                                            </td>
                                            <td valign="top" class="normalblack_12" align="center" style="height: 315px; width: 526px;">
                                                <asp:Label ID="lblMsg" runat="server" Text=""></asp:Label><br>
                                                <asp:GridView BorderWidth="1" DataKeyNames="Id" ID="GridView1" runat="server" AutoGenerateColumns="False"
                                                    ShowFooter="True" OnRowDeleting="GridView1_RowDeleting" OnRowDataBound="GridView1_RowDataBound"
                                                    CssClass="normalgrey_12" Width="95%" OnRowCommand="GridView1_RowCommand" AllowPaging="True"
                                                    OnPageIndexChanging="GridView1_PageIndexChanging">
                                                    <Columns>
                                                        <asp:TemplateField HeaderText="Edit">
                                                            <ItemTemplate>
                                                                <a href="Ad_Doctor.aspx?id=<%# Eval("Id") %>" title="Edit Record">
                                                                    <img alt="" src="../images/editinfo.gif" border="0" /></a>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField>
                                                            <ItemTemplate>
                                                                <a href="Ad_DocMetaContent.aspx?id=<%#Eval("ID") %>">
                                                                    <img src="../images/icon_meta.gif" border="0" alt="Edit Meta Content" /></a>
                                                            </ItemTemplate>
                                                            <FooterStyle Wrap="False" />
                                                        </asp:TemplateField>
                                                        <asp:BoundField HeaderText="Name" DataField="Name" />
                                                        <asp:BoundField HeaderText="Title" DataField="Title" />
                                                        <asp:BoundField HeaderText="City" DataField="City" />
                                                        <asp:BoundField HeaderText="State" DataField="State" />
                                                        <asp:BoundField HeaderText="Phone" DataField="Phone" />
                                                        <asp:BoundField HeaderText="Email" DataField="Email" />
                                                        <asp:TemplateField HeaderText="Unsubscribe">
                                                            <ItemTemplate>
                                                                <asp:LinkButton CommandArgument="id" CommandName="Delete" ID="lnkDelete" runat="server"
                                                                    ToolTip="Cancel Feature Membership"><img src="../images/delete.gif" border="0" /> </asp:LinkButton>
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField>
                                                            <HeaderTemplate>
                                                                <asp:CheckBox runat="server" ID="HeaderLevelCheckBox" />
                                                            </HeaderTemplate>
                                                            <FooterTemplate>
                                                                <asp:Button ID="butDel" runat="server" Text="Delete" CommandName="Del" OnClientClick="return DelConfirm();" />
                                                            </FooterTemplate>
                                                            <ItemTemplate>
                                                                <asp:CheckBox runat="server" ID="RowLevelCheckBox" Value='<%#DataBinder.Eval(Container.DataItem,"ID")%>' />
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" />
                                                            <HeaderStyle HorizontalAlign="Center" />
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <RowStyle HorizontalAlign="Left" />
                                                    <PagerStyle HorizontalAlign="Center" />
                                                    <FooterStyle HorizontalAlign="Left" />
                                                </asp:GridView>
                                            </td>
                                            <td style="width: 10px; height: 315px;">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="20">
                                            </td>
                                            <td style="width: 526px">
                                            </td>
                                            <td style="width: 10px">
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td height="30" colspan="3">
                    </td>
                </tr>
                <tr>
                    <td height="1" bgcolor="#CCCCCC">
                        <img src="../images/spacer.gif" width="1" height="1" alt="" /></td>
                    <td bgcolor="#CCCCCC" style="width: 950px">
                        <img src="../images/spacer.gif" width="1" height="1" alt="" /></td>
                    <td bgcolor="#CCCCCC">
                        <img src="../images/spacer.gif" width="1" height="1" alt="" /></td>
                </tr>
                <tr>
                    <td height="20" colspan="3">
                    </td>
                </tr>
                <!-- Bottom starts from here-->
                <uc3:Ad_footer ID="Ad_footer1" runat="server" />
                <!-- Bottom ends here-->
            </table>
        </div>
    </form>
</body>
</html>
